﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WpfDemo.Models.Migrations
{
    public partial class Addmodule : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SysModule",
                columns: table => new
                {
                    F_Id = table.Column<string>(type: "TEXT", nullable: false),
                    F_Name = table.Column<string>(type: "TEXT", maxLength: 20, nullable: false),
                    F_ParentId = table.Column<string>(type: "TEXT", nullable: true),
                    F_Icon = table.Column<string>(type: "TEXT", nullable: true),
                    F_TargetView = table.Column<string>(type: "TEXT", nullable: true),
                    F_Code = table.Column<string>(type: "TEXT", nullable: true),
                    F_IsDisabled = table.Column<string>(type: "TEXT", nullable: true),
                    F_Sort = table.Column<int>(type: "INTEGER", nullable: true),
                    F_Remark = table.Column<string>(type: "TEXT", nullable: true),
                    F_CreateTime = table.Column<DateTime>(type: "TEXT", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SysModule", x => x.F_Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SysModule");
        }
    }
}
